package com.bwie.system.controller;

import com.bwie.common.domain.Dict;
import com.bwie.common.result.Result;
import com.bwie.system.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("dict")
public class DictController {
    @Autowired
    private DictService dictService;
    /**
     * 数据字典下拉框
     */
    @GetMapping("dictList")
    private Result dictList(){
      List<Dict> list = dictService.dictList();
        return Result.success(list);

    }

}
